#!/bin/sh

package=asudmonitor
version=`grep "^Version:" asudmonitor.spec | cut -f 2`

(

cd ..

mkdir $package-$version
cp -r monitor/* $package-$version
cp  monitor/.htaccess $package-$version

find $package-$version -name .svn |xargs rm -rf

tar -czf $package-$version.tgz $package-$version

rm -rf $package-$version

cp monitor/asudmonitor.spec .

)
